
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import uiEcharts from './uni_modules/ui-echarts'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import http from './utils/http.js'
Vue.prototype.$api=http
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.use(uiEcharts) 
app.$mount()
// #endif


// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue' 
import http from './utils/http.js'
export function createApp() {
  // println($api) 
  // console.log(this.$api) 
  const app = createSSRApp(App)
  app.config.globalProperties.$api=http
  return {
    app
  }
}
// #endif